<script type="text/html" data-template-name="ha-mqtt-discovery">
    <div class="form-row">
        <label for="node-input-server" data-i18n="node-red-contrib-ha-mqtt/common:label.mqttServer"></label>
        <select id="node-input-server"></select>
    </div>
    <div class="form-tips"><span data-i18n="[html]tip"></span></div>
</script>
<script type="text/javascript">
    RED.nodes.registerType('ha-mqtt-discovery', {
        category: RED._("node-red-contrib-ha-mqtt/common:homeAssistantCategory"),
        color: '#b0add0',
        icon: "font-awesome/fa-search",
        paletteLabel: RED._("node-red-contrib-ha-mqtt/discovery:autoDiscovery"),
        defaults: {
            server: { value: "", type: "mqtt-broker", required: true }
        },
        inputs: 1,
        outputs: 0,
        label: function () {
            return this._("autoDiscovery");
        }
    });
</script>